<?php

class ArkaClass 
{

   var $var1; 	// this has no default value...
   var $var2 = "xyz";
   var $var3 = 100;
   private $var4; // PHP 5
   
   // constructor
   function __construct() 
   {
       $this->var1 = "foo";
       $this->var2 = "bar";
   }
}

$my_class = new ArkaClass();

//$the_vars = get_class_vars(get_class($my_class));
$the_vars = get_object_vars($my_class);
foreach ($the_vars as $name => $value) {
   echo "$name : $value\n";
}
?>
